#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: simple_crawling.py 
@version:
@time: 2023/04/13 
"""
import time

from geekPythonCore.util import run_time


def crawl_page(url):
    print('crawling {}'.format(url))
    sleep_time = int(url.split('_')[-1])
    time.sleep(sleep_time)
    print('OK {}'.format(url))


@run_time
def main(urls):
    for url in urls:
        crawl_page(url)


main(['url_1', 'url_2', 'url_3'])
